package com.bdc.memory.dao;

import com.bdc.memory.dao.impl.ITagDaoImpl;
import com.bdc.memory.domain.TagInfo;
import com.google.inject.ImplementedBy;

import java.util.List;

/**
 * User: shawn
 * Date: 2011-6-20
 * Time: 20:53:25
 */

@ImplementedBy(ITagDaoImpl.class)
public interface ITagDao {

    public void addTag(TagInfo info);

    public void delTag(long tagId);

    public TagInfo getTag(long tagId);

    public TagInfo getTag(long userId, String tag);

    public List<TagInfo> getTagList(long userId);

    public void addTagAmount(long userId, String tag);

    public void subTagAmount(long userId, String tag);
}
